﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using BakalarskaPraca.Generation.Tasks.Abstract;
using BakalarskaPraca.Interfaces;
using ColladaDotNet.Geometry;

namespace BakalarskaPraca.Generation.Data
{
    public class MarkedPolygonGroup
    {
        public string Name;
        public List<HumidityPolygon> Polygons;
        public List<GenerationProcess> GenerationInstructions; 

        public MarkedPolygonGroup(IEnumerable<HumidityPolygon> polygons)
        {
            this.Polygons = new List<HumidityPolygon>(polygons);
        }

        public void RunGeneration(IProgressReporter reporter)
        {
            this.GenerationInstructions.ForEach(g => g.Run(reporter));
        }
    }
}
